package com.example.shuiyin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("avatar_history")
public class AvatarHistory {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private String filename;  // 存储在MinIO中的文件名
    
    private String fileUrl;   // 完整的访问URL
    
    private LocalDateTime createdAt;
    
    private Boolean isActive; // 是否为当前激活的头像
} 